<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .radius {
      height: 100px;
      display: flex;
      justify-content: flex-start;
    }

    .radius::before,
    .radius::after {
      content: "";
      width: 20px;
      background: #098fae;
    }

    .radius::before {
      border-radius: 20px 0 0 20px;
    }

    .content {
      background: #098fae;
      width: 1px;
      transform: scale3d(1, 1, 1);
      transform-origin: left;
    }

    .radius::after {
      border-radius: 0 20px 20px 0;
      transform: translate3d(0, 0, 0);
    }

    /* CSS Animation */

    @keyframes right-animate {
      0% {
        transform: translate3d(0, 0, 0);
      }
      100% {
        transform: translate3d(600px, 0, 0);
      }
    }

    @keyframes move {
      0% {
        transform: translate3d(0, 0, 0);
      }
      100% {
        transform: translate3d(-300px, 0, 0);
      }
    }

    @keyframes center-animate {
      0% {
        transform: scale3d(1, 1, 1);
      }
      100% {
        transform: scale3d(601, 1, 1);
      }
    }

    .content {
      animation: center-animate 10s linear infinite alternate;
    }

    .radius::after {
      animation: right-animate 10s linear infinite alternate;
    }

    .radius {
      animation: move 10s linear infinite alternate;
    }
  </style>
</head>
<body>
  <div class="radius">
    <div class="content"></div>
  </div>
</body>
</html>